From fd4e1d38c29a336cd1c24ce0ae29430a52841860 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 14 May 2004 18:37:12 +0000 Subject: [PATCH] Add geocache stuff to tabsep. --- gpsbabel/Makefile | 4 ++-- gpsbabel/internal_styles.c | 5 +++++ gpsbabel/style/tabsep.style | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index cdadf9f14..897d3fbec 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -75,7 +75,7 @@ leaktest: dep: make clean && make CC="gcc -MMD" && cat *.d */*.d > /tmp/dep && rm *.d */*.d - (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > $@ || (rm -f $@ ; exit 1)' ) >> /tmp/dep + (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > internal_styles.c || (rm -f internal_styles.c ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep #VERSIONU=1_2_3_beta04272004 @@ -243,4 +243,4 @@ jeeps/gpsutil.o: jeeps/gpsutil.c jeeps/gps.h defs.h queue.h \ jeeps/gpsrqst.h jeeps/gpsinput.h jeeps/gpsproj.h jeeps/gpsnmeafmt.h \ jeeps/gpsnmeaget.h internal_styles.c: mkstyle.sh style/README.style style/arc.style style/csv.style style/custom.style style/dna.style style/fugawi.style style/gpsdrive.style style/gpsman.style style/mapconverter.style style/mxf.style style/nima.style style/s_and_t.style style/saplus.style style/tabsep.style style/xmap.style style/xmapwpt.style - ./mkstyle.sh > dep || (rm -f dep ; exit 1) + ./mkstyle.sh > internal_sytles.c || (rm -f dep ; exit 1) diff --git a/gpsbabel/internal_styles.c b/gpsbabel/internal_styles.c index 2cc2ddee1..e7e046b6e 100644 --- a/gpsbabel/internal_styles.c +++ b/gpsbabel/internal_styles.c @@ -485,6 +485,11 @@ static char tabsep[] = "IFIELD ALT_METERS, \"\", \"%fM\"\n" "IFIELD EXCEL_TIME, \"\", \"%f\"\n" "IFIELD TIMET_TIME, \"\", \"%ld\"\n" +"IFIELD GEOCACHE_DIFF,\"\",\"%3.1f\"\n" +"IFIELD GEOCACHE_TERR,\"\",\"%3.1f\"\n" +"IFIELD GEOCACHE_CONTAINER,\"\",\"%s\"\n" +"IFIELD GEOCACHE_TYPE,\"\",\"%s\"\n" + ; static char xmap[] = "# gpsbabel XCSV style file\n" diff --git a/gpsbabel/style/tabsep.style b/gpsbabel/style/tabsep.style index af9efd4b4..5967d07f4 100644 --- a/gpsbabel/style/tabsep.style +++ b/gpsbabel/style/tabsep.style @@ -45,3 +45,8 @@ IFIELD ALT_FEET, "", "%fF" IFIELD ALT_METERS, "", "%fM" IFIELD EXCEL_TIME, "", "%f" IFIELD TIMET_TIME, "", "%ld" +IFIELD GEOCACHE_DIFF,"","%3.1f" +IFIELD GEOCACHE_TERR,"","%3.1f" +IFIELD GEOCACHE_CONTAINER,"","%s" +IFIELD GEOCACHE_TYPE,"","%s" + -- 2.30.2